/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.admin.api.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 许可证管理表
 *
 * @author liyue
 * @date 2022-11-01 10:38:32
 */
@Data
@TableName("sys_licence")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "许可证管理表")
public class SysLicence extends BaseEntity<SysLicence> {

    private static final long serialVersionUID = 1L;
    /**
     * 状态：0：正常，1禁用
     */
    @ApiModelProperty(value = "状态：0：正常，1禁用")
    private Integer status;

    /**
     * 公匙
     */
    @ApiModelProperty(value = "公匙")
    private String publicKey;

    /**
     * 密匙
     */
    @ApiModelProperty(value = "密匙")
    private String privateKey;

    /**
     * 服务地址名称
     */
    @NotNull(message = "服务器地址不能为空")
    @ApiModelProperty(value = "服务器地址")
    private String address;

    /**
     * CPU ID
     */
    @ApiModelProperty(value = "CPU ID")
    private String cpuId;

    /**
     * 主板ID
     */
    @ApiModelProperty(value = "主板ID")
    private String mainBoard;

    /**
     * 硬盘ID
     */
    @ApiModelProperty(value = "硬盘ID")
    private String diskId;

    /**
     * MAC地址
     */
    @ApiModelProperty(value = "MAC地址")
    private String mac;

    /**
     * 加密方式
     */
    @ApiModelProperty(value = "加密方式")
    private String encryMode;

    /**
     * 类型： 服务端，客户端
     */
    @ApiModelProperty(value = "类型： 服务端，客户端")
    private String type;

    /**
     * 授权方式 未定
     */
    @ApiModelProperty(value = "授权方式 未定")
    private String authorizationMethod;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startDate;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endDate;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

}
